package com.chenfan.mcn.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenfan.mcn.extension.log.FieldDesc;
import com.chenfan.mcn.model.base.BaseSaveEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 红人月度结算单明细表
 * </p>
 *
 * @author wulg
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("star_monthly_settlement_detail")
public class StarMonthlySettlementDetail extends BaseSaveEntity {

    private static final long serialVersionUID = -9209972560224978487L;

    /**
     * 结算单ID
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 子结算单ID
     */
    @TableField("sub_settlement_id")
    private Long subSettlementId;

    /**
     * 执行单ID
     */
    @TableField("excution_order_id")
    private Long excutionOrderId;

    /**
     * 我司签约主体id（取【公司管理】的数据）
     */
    @TableField("contracting_id")
    private Long contractingId;

    /**
     * 财务确认分成金额
     */
    @TableField("finance_devided_amount")
    private BigDecimal financeDevidedAmount;

    /**
     * 财务确认文建税
     */
    @FieldDesc(value = "财务确认文建税")
    private BigDecimal financeCulturalTax;

    /**
     * 均摊个税金额
     */
    @TableField("share_tax_amount")
    private BigDecimal shareTaxAmount;

    /**
     * 税后均摊打款金额
     */
    @TableField("aftertax_share_amount")
    private BigDecimal aftertaxShareAmount;

    /**
     * 结算形式（0-线上结算，1-线下结算）
     */
    @TableField("settlement_form")
    private Integer settlementForm;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 是否作废(0-否，1-是)
     */
    @TableField(value="is_invalid")
    private Integer isInvalid;

}
